@{ Layout = "~/Views/Shared/_Layout.cshtml"; }

@Html.DevExpress().Splitter(settings => {
    settings.Name = "MainSplitter";
    settings.AllowResize = false;
    settings.Orientation = System.Web.UI.WebControls.Orientation.Vertical;
    settings.FullscreenMode = true;
    settings.SeparatorVisible = false;
    settings.Styles.Pane.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
    settings.Styles.Pane.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(0);

    settings.Panes.Add(pane => {
        pane.Name = "Header";
        //if (Request.Browser.Browser == "IE" && Request.Browser.MajorVersion == 6)
        //{
        //    pane.Size = System.Web.UI.WebControls.Unit.Pixel(160);
        //    pane.MinSize = System.Web.UI.WebControls.Unit.Pixel(160); 
        //}
        //else
        //{
            pane.Size = System.Web.UI.WebControls.Unit.Pixel(151);
            pane.MinSize = System.Web.UI.WebControls.Unit.Pixel(151);
        //}
        pane.PaneStyle.BorderBottom.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
        pane.PaneStyle.CssClass = "headerPane";
        pane.SetContent(() => {
            Html.RenderPartial("HeaderPartialView");
            //Html.RenderAction("HeaderPartialView", "Account"); 
        });
    });
    settings.Panes.Add(pane => {
        pane.Name = "Content";
		pane.PaneStyle.CssClass = "mainContentPane";
        pane.MinSize = System.Web.UI.WebControls.Unit.Pixel(375);
        pane.PaneStyle.BackColor = System.Drawing.Color.White;
        pane.PaneStyle.BorderBottom.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
        pane.SetContent(RenderBody().ToHtmlString());
    });

    settings.Panes.Add(pane => {
        pane.Name = "Footer";
        pane.Size = System.Web.UI.WebControls.Unit.Pixel(30);
        pane.MinSize = System.Web.UI.WebControls.Unit.Pixel(30);
        pane.PaneStyle.CssClass = "footerPane";
        pane.SetContent(() => {
            Html.RenderPartial("FooterPartialView");
        });
    });
}).GetHtml()